<?php

class McCube_Exception_ControllerActionNotFound extends McCube_Exception{

    protected $methodName     = '';
    protected $controllerName = '';

    /** */
    public function __construct($controllerName, $methodName){
        $this->methodName     = $methodName;
        $this->controllerName = $controllerName;

        parent::__construct(
            'Action '.$methodName
            .' on Controller ['.$controllerName.'] not found !'
        );
    }

    /** */
    public function renderHTML(){
        return ''
            .'Action'
            .' [ <em style=";color:green;">'.$this->methodName.'</em> ]'
            .' on Controller [ <em style="color:green;">'.$this->controllerName.'</em> ]'
            .' not found !'
        ;
    }



}